package xin.fsqr520.project.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import xin.fsqr520.project.domain.po.PostComment;

import java.time.LocalDateTime;
import java.util.List;


/**
 * 返回给前端的某一条动态详情
 */
@Data
@Builder
public class PostDetailVO {

    private Long postId; //文章id
    private Long userId; //发布者id
    private String avatar;//发布者头像
    private String username;//发布者用户名


    private String timeAgo;//多久之前
    private String content;
    private List<String> images;//使用到的图片
    private int likes;
    private int comments;
    private int shares;
    private boolean Liked;//当前用户是否点赞过

    /**
     * 评论列表
     */
    private List<PostComment> commentList;
}
